package com.soft.javase.ch06.integer;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/28
 */
public class CharacterDemo {
    public static void main(String[] args) {

        char[] chars = {'a','A','汪','2',' ','$'};

        for (char c : chars) {
            if(Character.isLowerCase(c)){
                System.out.println(c+"是一个小写字符");
            }
            if(Character.isUpperCase(c)){
                System.out.println(c+"是一个大写字符");
            }
            if(Character.isDigit(c)){
                System.out.println(c+"是一个数字");
            }
            if(Character.isLetter(c)){
                System.out.println(c+"是一个字母");
            }
            if(Character.isWhitespace(c)){
                System.out.println(c+"是一个空格");
            }

        }
    }
}
